<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="FBGraph.Web.Mvc.FBGraphViewPage<DetailData>" %>

<asp:Content ID="t" ContentPlaceHolderID="TitleContent" runat="server">Event: <%= Model.Event.Name %></asp:Content>

<asp:Content ID="c" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%= Html.Picture(Model.Event.Id, Model.Event.Name) %></h2>
    
    <p class="location"><%= Model.Event.Location%></p>
    <p><%= Model.Event.StartTime%> - <%= Model.Event.EndTime%></p>
    <p>Hosted by <%= Html.ActionLink(Model.Event.Owner.Name, "detail", "profile", new { id = Model.Event.Owner.Id }, null)%></p>
    <p class="description"><%= Model.Event.Description%></p>
    
    <p>Last Updated <%= Model.Event.UpdatedTime%></p>
    
    <div class="section feed">
        <h3>Feed</h3>        
        <% foreach (var post in Model.Feed.Data) Html.RenderPartial("Post", post); %>
    </div>
    
    <div class="section user-list">
        <h3>Invited</h3>
        <% Html.RenderPartial("RsvpList", Model.Invited.Data); %>
    </div>
    
    <div class="section user-list">
        <h3>Attending</h3>
        <% Html.RenderPartial("RsvpList", Model.Attending.Data); %>
    </div>
    
    <div class="section user-list">
        <h3>Maybe</h3>
        <% Html.RenderPartial("RsvpList", Model.Maybe.Data); %>
    </div>
    
    <div class="section user-list">
        <h3>Declined</h3>
        <% Html.RenderPartial("RsvpList", Model.Declined.Data); %>
    </div>
    
    <br class="clear" />

</asp:Content>
